package com.zhuiyun.project.api.apppatient.service;

import com.zhuiyun.project.api.apppatient.entity.Patient;
import com.zhuiyun.project.api.apppatient.model.PatientModel;
import com.zhuiyun.project.common.response.CommonResult;

/**
 * @ClassName PatientService
 * @Description TODO
 * @Author Root3
 * @Date 2023/7/3 9:54
 **/
public interface PatientService {
    /**
    * @Author Root
    * @Description 添加患者信息
    * @Date 2023/7/24 17:24
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param patientModel
    */
    CommonResult insertPatient(PatientModel patientModel);
    /**
    * @Author Root
    * @Description 通过名字查询患者信息
    * @Date 2023/7/24 17:25
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param name
    * @param cycle
    */
    CommonResult getPatientByName(Integer userId,String cycle,String disease);
    /**
    * @Author Root
    * @Description 通过名字查询周期
    * @Date 2023/7/24 17:25
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param name
    */
    CommonResult  getPatientByCycle1(Integer userId);
    /**
     * @Author Root
     * @Description 通过名字查询周期
     * @Date 2023/7/24 17:25
     * @Return com.zhuiyun.project.common.response.CommonResult
     * @param name
     */
    CommonResult  getPatientByCycle2(Integer userId);
    /**
     * @Author Root
     * @Description 通过名字查询周期
     * @Date 2023/7/24 17:25
     * @Return com.zhuiyun.project.common.response.CommonResult
     * @param name
     */
    CommonResult  getPatientByCycle3(Integer userId);
    /**
     * @Author Root
     * @Description 通过名字查询周期
     * @Date 2023/7/24 17:25
     * @Return com.zhuiyun.project.common.response.CommonResult
     * @param name
     */
    CommonResult  getPatientByCycle4(Integer userId);
    /**
    * @Author Root
    * @Description 修改用户患者的名字
    * @Date 2023/7/11 19:24
    * @Return com.zhuiyun.project.common.response.CommonResult
    * @param name
    * @param newName
    */
    CommonResult updatePatientByName(String name,String newName);

    /**
     * @Author Root
     * @Description 修改状态
     * @Date 2023/7/11 19:24
     * @Return com.zhuiyun.project.common.response.CommonResult
     * @param patient
     */
    CommonResult updatePatientById(Patient patient);
}
